---
id: blue_sand
---
## 引入组件

import Formula from '@formula/index.astro'

## 合成表使用示例

formula 来自 mod 内的配方，配方请前往：https://gitee.com/a-little-white-black-rice/providencraft/tree/master/src/main/resources/data/providencraft/recipes 查找

此处是 [蓝沙](https://gitee.com/a-little-white-black-rice/providencraft/blob/master/src/main/resources/data/providencraft/recipes/blue_sand.json) 的配方

### 第一步，写下这个组件

```jsx
<Formula />
```

### 第二步，在组件内添加 formula 字段

```jsx
<Formula formula={} />
```

### 第三步，将配方复制并粘贴到括号内

```jsx
<Formula formula={{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "bbb",
    "bab",
    "bbb"
  ],
  "key": {
    "b": {
      "item": "minecraft:sand"
    },
    "a": {
      "item": "minecraft:blue_dye"
    }
  },
  "result": {
    "item": "providencraft:blue_sand",
    "count": 8
  }
}} />
```

恭喜你，你就得到了一个合成表：

<Formula formula={{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "bbb",
    "bab",
    "bbb"
  ],
  "key": {
    "b": {
      "item": "minecraft:sand"
    },
    "a": {
      "item": "minecraft:blue_dye"
    }
  },
  "result": {
    "item": "providencraft:blue_sand",
    "count": 8
  }
}} />

## 简化使用

可以这样写：

<Formula id="red_ahoge" ver="1.1.4" description="1.1.4及以前" />